package Entities;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name = "InsumoAReponer")
public class Entity_InsumoAReponer implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@OneToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_insumo")
	private Entity_Insumo insumo;
	@Column
	private float cantidad;
	
	
	//GET & SET
	public Entity_Insumo getInsumo() {
		return insumo;
	}

	public void setInsumo(Entity_Insumo insumo) {
		this.insumo = insumo;
	}

	public float getCantidad() {
		return cantidad;
	}

	public void setCantidad(float cantidad) {
		this.cantidad = cantidad;
	}
	
	

}
